﻿namespace PowerSong.UserInterface
    {
    using System.Windows;

    /// <summary>
    /// Interaction logic for MessagesWindow.xaml
    /// </summary>
    public partial class MessagesWindow : Window
        {

        private MessagesWindow(string description, string[] messages)
            {
            InitializeComponent();
            this.DescriptionTextBlock.Text = description;
            this.MessagesListBox.ItemsSource = messages;
            }

        private void OKButton_Click(object sender, RoutedEventArgs e)
            {
            this.DialogResult = true;
            }

        public static void Show(string description, string[] messages)
            {
            var window = new MessagesWindow(description, messages);
            window.ShowDialog();
            }

        }

    }
